package com.geek.game.manager.agent.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import ydh.cicada.api.Column;
import ydh.cicada.api.Entity;
import ydh.cicada.api.Id;

/**
 * 俱乐部与玩家关系表
 * @author Administrator
 *
 */
@Entity(name="club_player_mapping")
public class ClubPlayerMapping implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id")
	private Integer id;				//关系id
	
	@Column(name="club_id")
	private Integer clubId;			//俱乐部id
	@Column(name="player_id")
	private Integer playerId;		//玩家id
	
	@Column(name="create_time")
	private Date createTime;		//创建时间
	
	@Column(name="modify_time")
	private Date modifyTime;		//最后修改时间
	
	@Column(name="disabled")
	private boolean disabled;		//是否失效
	
	@Column(name="advance_diamond")
	private Integer advanceDiamond;	//预支额度
	
	@Column(name="permit")
	private boolean permit; //是否开启预支
	
	@Column(name="arrearage")
	private Integer arrearage;//欠费,消费扣除的金额(不能超过预支额度advanceDiamond)
	
	@Column(name="remarks")
	private String remarks;//备注
//========================================扩展字段=================================//
	private String clubName;
	
	private Integer clubSize;
	
	private String playerName;//玩家名称
	
	private Integer playerDiamond;//玩家剩余钻石

	private Integer locked;
	
	
	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	
	

	public String getPlayerName() {
		return playerName;
	}

	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}

	public Integer getPlayerDiamond() {
		return playerDiamond;
	}

	public void setPlayerDiamond(Integer playerDiamond) {
		this.playerDiamond = playerDiamond;
	}

	public Integer getClubId() {
		return clubId;
	}

	public void setClubId(Integer clubId) {
		this.clubId = clubId;
	}

	public Integer getPlayerId() {
		return playerId;
	}

	public void setPlayerId(Integer playerId) {
		this.playerId = playerId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public Integer getAdvanceDiamond() {
		return advanceDiamond;
	}

	public void setAdvanceDiamond(Integer advanceDiamond) {
		this.advanceDiamond = advanceDiamond;
	}

	public String getClubName() {
		return clubName;
	}

	public void setClubName(String clubName) {
		this.clubName = clubName;
	}

	public Integer getClubSize() {
		return clubSize;
	}

	public void setClubSize(Integer clubSize) {
		this.clubSize = clubSize;
	}

	public boolean isPermit() {
		return permit;
	}

	public void setPermit(boolean permit) {
		this.permit = permit;
	}

	public Integer getArrearage() {
		return arrearage;
	}

	public void setArrearage(Integer arrearage) {
		this.arrearage = arrearage;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	
	
}
